//
//  ResultSearchDirectoryViewController.h
//  HandyDialer
//
//	Developed by Team Synergy
//  Created by Jordan Tseng on 10/29/11.
//  Coders: Jacky Li and Jordan Tseng 
//  Graphic Designer: Derek Fong
//  Developers: Brad Lisson, Derek Fong, Jacky Li, Jeremy Gangoso, Jordan Tseng
//  Copyright HandyDialer 2011. All rights reserved.
//
//  Class Descrption: Where the number is passed and analyzed by the 411 Canada site.
//
//  Member Variables:
//  int counter
//      - stores the numerical number of where the button it is currently on
//  NSTimer *uniTimer
//     - Highlighting done in seconds
//  NSUserDefaults *defaults
//     - Setting default status of the Result of the search
//  float speed
//     - stores the speed oh the highlighting
//  NSString *highlightColor
//     - type of color highligh is done in
//  NSString *themeColor
//     - type of theme for the whole application
//
//  Member functions:
//  + (IBAction)switchView:(id)sender
//          - switches between inside search directory to directory and vice versa
//  + (void)parseHTML
//          - parsing the searched HTML
//  + (void)optionChange
//          - changes the screen according to which option was chosen
//	+ (void)returnToView:(NSString *)viewName:(UIViewController *)previousView
//					- recursively traverse parent views to find the view to return to
//
//	Bugs (unfixed):
//				None found so far
//
//	Unfinished Features:
//				None
//

#import <UIKit/UIKit.h>
#import "DataStorage.h"
#import "HTMLParser.h"

@interface ResultSearchDirectoryViewController : UIViewController
{
    int counter;
    NSTimer *uniTimer;
    NSUserDefaults *defaults;
	float speed;
	NSString *highlightColor;
	NSString *themeColor;
	bool firstTime;
    IBOutlet UIImageView *highlightArea;
	IBOutlet UIImageView *backgroundArea;
	IBOutlet UILabel *searchResult;
}

- (IBAction)switchView:(id)sender;

- (void)returnToView:(NSString *)viewName:(UIViewController *)previousView;

- (void)highlightChange:(NSString *)picture;

- (void)parseHTML;

- (void)optionChange;

@property (nonatomic, retain)UIImageView *highlightArea;
@property (nonatomic, retain)UIImageView *backgroundArea;

@end
